server {
    listen  80;
    server_name  cloudchain.cn;
    root   /opt/web/YmtvWeb/public;
    access_log  /opt/web/YmtvWeb/log/access.log;
    passenger_enabled on;
    passenger_user root;
}
server {
    server_name  www.cloudchain.cn;
    rewrite ^(.*) http://cloudchain.cn$1 permanent;
}

server {
    server_name oa.cloudchain.cn;
    rewrite ^(.*) http://oa.cloudchain.cn:3010$1 permanent;
}

server {
    listen  80 default;
    rewrite ^(.*) http://cloudchain.cn/download$1 permanent;
}

